package com.Hsu.blog.model;

import com.Hsu.blog.utils.DateUtils;
import lombok.Data;

import java.util.Date;

/**
 * @author Hsu琛君珩
 * @ClassName:BlogInfo
 * @date 2024-01-23
 * @apiNote
 * @Version: v1.0
 */

@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;
    private boolean loginUser;

    public boolean isLoginUser() {
        return loginUser;
    }

    public void setLoginUser(boolean loginUser) {
        this.loginUser = loginUser;
    }

    public String getCreateTime() {
        return DateUtils.formatDate(createTime);
    }
}
